package com.kklldog.core.task;
/** 
 * @author mj.zhou 
 * @version create：2013-12-4 下午3:27:22 
 * 类说明 
 */
public class TaskResult<T> {
	
	private T t;
	private Boolean isSuccess;
	private String completeMethodName="";
	private String errorMessage="";
	
	/**
	 * 获取返回值
	 * @return
	 */
	public T getData(){
		return t;
	}
	
	public void setData(T t){
		this.t = t;
	}
	
	/**
	 * 指示任务是否成功
	 * @return
	 */
	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	/**
	 * 需要Call的方法
	 * @return
	 */
	public String getCompleteMethodName() {
		return completeMethodName;
	}

	public void setCompleteMethodName(String completeMethodName) {
		this.completeMethodName = completeMethodName;
	}

	/**
	 * 错误信息
	 * @return
	 */
	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}


	
}
